import { defineStore } from 'pinia'

export const useTeststore = defineStore({
  id: 'test1',
  state: () => ({
    test1: 1,
    test2: 2,
  }),
  getters: {
    getTest1: (state) => (
      state.tes1 + 1
    ),
    getTest2: (state) => (
      state.tes2 + 1
    ),

  },
  action: {
    setTest1 (value) {
      this.test1 = value
    }
  }
})
